class CommentMailer < ActionMailer::Base
  
  def comment_notification(comment, recipient)
    recipients recipient.email
    from RETURN_ADDRESS
    subject :comment_posted.localize_with_args(:event => comment.event.name)
    host, port = comment.url.split(':')
    body :author => comment.user.render, :recipient => recipient.salutation, :event => comment.event, :comment => comment, :host => host, :port => port || 80
  end
end
